package btp.Calendars;

public class ArmenianCalendar {

	public static final long EPOCH = JulianCalendar.getRDFromJulian(552, JulianCalendar.JULY, 11);
	
	
	public static final int NAWASARDI = 1;
	public static final int HORI = 2;
	public static final int SAHMI = 3;
	public static final int TRE = 4;
	public static final int KALOCH = 5;
	public static final int ARACH = 6;
	public static final int MEHEKANI = 7;
	public static final int AREG = 8;
	public static final int AHEKANI = 9;
	public static final int MARERI = 10;
	public static final int MARGACH = 11;
	public static final int HROTICH = 12;
	public static final int UNNAMED_MONTH = 13;
	

	int year;
	int month;
	int day;
	public ArmenianCalendar(int year, int month, int day) {
		this.year = year;
		this.month = month;
		this.day = day;
	}
	
	public long getRDFromCalendar() {
		return EPOCH + 365*(year-1) + 30*(month-1) + day-1;
	}

	
	public static ArmenianCalendar getCalendarFromRD(long rd){
		EgyptianCalendar e = EgyptianCalendar.getCalendarFromRD(rd+EgyptianCalendar.EPOCH-EPOCH);
		return new ArmenianCalendar(e.year, e.month,e.day);
	}

	public final int getYear() {
		return year;
	}

	public final void setYear(int year) {
		this.year = year;
	}

	public final int getMonth() {
		return month;
	}

	public final void setMonth(int month) {
		this.month = month;
	}

	public final int getDay() {
		return day;
	}

	public final void setDay(int day) {
		this.day = day;
	}
	
	
}
